<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>非行间样式的函数</title>
</head>
<body>
    
    <script>
        
        function getStyle(obj,attr){
            if(window.getComputedStyle){
                return window.getComputedStyle(obj,null)[attr];
            }else {
                return obj.currentStyle[attr];
            }
        }


        var count = 0;
        for (var i=1;i<21;i++) {
            var str = i.toString();
            if(str.indexOf("1")>-1){
                count++;
            }
        }
        
        console.log(count);

        function fn() {
            console.log(arguments.callee);
            console.log(arguments.caller);

        }

        fn();
    </script>
</body>
</html>